{{!
  Copyright (c) HashiCorp, Inc.
  SPDX-License-Identifier: BUSL-1.1
~}}

<Toolbar>
  <ToolbarActions>
    {{yield to="actions"}}
  </ToolbarActions>
</Toolbar>

{{#if this.hasConfig}}
  {{#if @list.meta.total}}
    {{yield to="description"}}
    {{yield @list to="list"}}
    <Hds::Pagination::Numbered
      @currentPage={{@list.meta.currentPage}}
      @currentPageSize={{@list.meta.pageSize}}
      @route={{@listRoute}}
      @model={{@backend}}
      @showSizeSelector={{false}}
      @totalItems={{@list.meta.total}}
      @queryFunction={{this.paginationQueryParams}}
      data-test-pagination
    />
  {{else}}
    {{yield to="empty"}}
  {{/if}}
{{else}}
  {{yield to="configure"}}
{{/if}}